import { Controller, Get } from '@nestjs/common';
import { UsersService } from './users.service';
import { ApiTags, ApiOperation, ApiResponse } from '@nestjs/swagger';
import { User } from './entities/user.entity';
@ApiTags('用户信息')
@ApiResponse({ type: [User] })
@Controller('users')
export class UsersController {
  constructor(private readonly usersService: UsersService) {}
  @ApiOperation({ summary: '获取所有用户信息' })
  @Get()
  findAll() {
    return this.usersService.findAll();
  }
}
